package com.railway.bean;

import java.util.Date;
import java.util.List;

public class Ticket {
	
	private int ticketId;//车票id
	
	private int trainId;//车次id
	
	private int startingStationId;//起点站id
	
	private int terminalStationId;//终点站id
	
	private int start_pass_id ;//起点途径id
	
	private int terminal_pass_id;//终点途径id
	
	private int start_station_name ;//终点站
	
	private int terminal_station_name;//起点站
	
	private Date startingime;//出发日期时间

	private Date terminal;//出发日期时间
	
	private int seatType;//座位类型
	
	private int carriageNum;//车厢号
	
	private int seatNum;//座位号
	
	private char seat_location;//座位号(A,B,C,D,E)
	
	private String contact_name;//乘车人
	
	private int user_id;//用户id

	public int getTicketId() {
		return ticketId;
	}

	public void setTicketId(int ticketId) {
		this.ticketId = ticketId;
	}

	public int getTrainId() {
		return trainId;
	}
	
	public char getSeat_location() {
		return seat_location;
	}

	public void setSeat_location(char seat_location) {
		this.seat_location = seat_location;
	}

	public void setTrainId(int trainId) {
		this.trainId = trainId;
	}

	public int getStartingStationId() {
		return startingStationId;
	}

	public void setStartingStationId(int startingStationId) {
		this.startingStationId = startingStationId;
	}

	public int getTerminalStationId() {
		return terminalStationId;
	}

	public void setTerminalStationId(int terminalStationId) {
		this.terminalStationId = terminalStationId;
	}

	public Date getStartingime() {
		return startingime;
	}

	public void setStartingime(Date startingime) {
		this.startingime = startingime;
	}

	public int getSeatType() {
		return seatType;
	}

	public void setSeatType(int seatType) {
		this.seatType = seatType;
	}

	public int getCarriageNum() {
		return carriageNum;
	}

	public void setCamageNum(int carriageNum) {
		this.carriageNum = carriageNum;
	}

	public int getSeatNum() {
		return seatNum;
	}

	public void setSeatNum(int seatNum) {
		this.seatNum = seatNum;
	}
	

	public int getStart_pass_id() {
		return start_pass_id;
	}

	public void setStart_pass_id(int start_pass_id) {
		this.start_pass_id = start_pass_id;
	}

	public int getTerminal_pass_id() {
		return terminal_pass_id;
	}

	public void setTerminal_pass_id(int terminal_pass_id) {
		this.terminal_pass_id = terminal_pass_id;
	}
	

	public int getUser_id() {
		return user_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public Date getTerminal() {
		return terminal;
	}

	public void setTerminal(Date terminal) {
		this.terminal = terminal;
	}

	public int getStart_station_name() {
		return start_station_name;
	}

	public void setStart_station_name(int start_station_name) {
		this.start_station_name = start_station_name;
	}

	public int getTerminal_station_name() {
		return terminal_station_name;
	}

	public void setTerminal_station_name(int terminal_station_name) {
		this.terminal_station_name = terminal_station_name;
	}

	public void setCarriageNum(int carriageNum) {
		this.carriageNum = carriageNum;
	}

	public String getContact_name() {
		return contact_name;
	}

	public void setContact_name(String contact_name) {
		this.contact_name = contact_name;
	}

	public Ticket(int trainId, int startingStationId, int terminalStationId, Date startingime, Date terminal,
			int seatType, int carriageNum, int seatNum, char seat_location) {
		super();
		this.trainId = trainId;
		this.startingStationId = startingStationId;
		this.terminalStationId = terminalStationId;
		this.startingime = startingime;
		this.terminal = terminal;
		this.seatType = seatType;
		this.carriageNum = carriageNum;
		this.seatNum = seatNum;
		this.seat_location = seat_location;
	}
	
}
